package com.charlotte.study.gupao.proxy.staticproxy;

/**
 * @author junjie.ding
 * @date 2020/3/2
 */
public class ZhangsanFather implements IPerson{

    private IPerson zhangsan;

    public ZhangsanFather(IPerson person) {
        this.zhangsan = person;
    }

    @Override
    public void findLove(){
        before();
        this.zhangsan.findLove();
        after();
    }

    public void before(){
        System.out.println("广撒网");
    }

    public void after(){
        System.out.println("开始筛选");
    }
}
